﻿using System;
using System.ComponentModel.DataAnnotations;

namespace D.Medicalcare.Domain.Entities
{
    /// <summary>
    /// 退款订单表
    /// </summary>
    public class Refund
    {
        [Key]
        /// <summary>
        /// 主键
        /// </summary>
        public int RefundId { get; set; }

        /// <summary>
        /// 患者ID（外键）
        /// </summary>
        public int? PatientId { get; set; }

        /// <summary>
        /// 退款金额
        /// </summary>
        public double? RefundAmount { get; set; }

        /// <summary>
        /// 退款途径（如微信、支付宝等）
        /// </summary>
        public string? RefundPath { get; set; }

        /// <summary>
        /// 卡内余额
        /// </summary>
        public double? CardBalance { get; set; }

        /// <summary>
        /// 退款状态
        /// </summary>
        public string? RefundStatus { get; set; }

        /// <summary>
        /// 退款编号
        /// </summary>
        public string? RefundNo { get; set; }

        /// <summary>
        /// 退款时间
        /// </summary>
        public DateTime? RefundTime { get; set; }

        /// <summary>
        /// 来源（如小程序、APP等）
        /// </summary>
        public string? Source { get; set; }

        /// <summary>
        /// 业务类型
        /// </summary>
        public string? BusinessType { get; set; }

        /// <summary>
        /// 订单备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 删除标志
        /// </summary>
        public bool IsDeleted { get; set; }
    }
}